body {
    font-family: sans-serif;
    padding: 20px;
}

.controls, .search-container {
    margin-bottom: 20px;
}

.container {
    display: flex;
    gap: 30px;
}

.calendar-area {
    width: 60%;
}

.schedule-list-area {
    width: 35%;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}


.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}

#calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #ddd;
}


.calendar-cell {
    min-height: 100px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
    overflow-y: auto;
}

.calendar-cell:hover {
    background-color: #f9f9f9;
}

.calendar-cell.empty {
    background-color: #f5f5f5;
    cursor: default;
}


.schedule-item-calendar {
    font-size: 0.8em;
    background-color: #e0f7fa;
    border-radius: 3px;
    padding: 2px 4px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}


/* [추가] prompt() 대신 사용할 모달 스타일 정의 */
.modal-hidden {
    display: none;
}


#schedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 30px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    border-radius: 8px;
}

.modal-content div {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
}

.modal-content input[type="text"],
.modal-content select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.modal-close-btn {
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}


/* [추가] 일정 검색 결과 시각적 강조*/
.calendar-cell.highlight {
    background-color: #fffb8f; 
    border: 2px solid #fdd835;
}